﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using ZXW.DotNet.Common.DbUtilities;

namespace DbTest
{
    class Program
    {
        static void Main(string[] args)
        {
            IDbHelper db = DbHelperFactory.Create("LocalSQL");
            db.Open();
            IDataReader idr= db.ExecuteReader("select * from AlarmMessage");

            while (idr.Read())
            {
                Console.WriteLine(idr.GetDateTime(12));
            }

            db.Close();
            string str = db.GetDBDateTime();
            Console.WriteLine(str);
            Console.Read();
        }
    }
}
